package com.vietnam.power.service;

import java.util.List;

import com.vietnam.power.domain.Article;
import com.vietnam.power.domain.ArticleGroup;
import com.vietnam.power.domain.ArticleSearchCriteria;

public interface ArticleService {

	public Article getArticleById(int id);

	public List<Article> getArticleListByGroupName(ArticleSearchCriteria asc, Integer page);

	public List<Integer> deleteArticle(int id);

	public List<Integer> updateArticle(Article a);

	public void createArticle(Article a);

	public List<Article> searchArticle(ArticleSearchCriteria asc);

	public void deleteArticleGroup(int id);

	public void updateArticleGroup(ArticleGroup ag);

	public void createArticleGroup(ArticleGroup ag);

	public ArticleGroup getArticleGroup(int id);
	
	public List<ArticleGroup> getArticleGroupList();
	
	public boolean validateArticlesInGroup(int groupId);
	
}
